package reflect;

import reflect.annotations.AutoRunClass;

import java.util.Map;

public class ReflectDeme10 {
    public static void main(String[] args) throws Exception {
        Class cls=Class.forName("reflect.Person");
        if(cls.isAnnotationPresent(AutoRunClass.class)){
            System.out.println("类上标注了AutoRunClass注解");
        }else {
            System.out.println("类上没有标注AutoRunClass注解");
        }
    }
}
